package com.qf.webmaster.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class IRuleConfig {

    @Bean
    public IRule rule(){
        return new RandomRule();
    }


    public static void main(String[] args) {
        System.out.println(Math.random());
    }
}
